const _import = require('./_import_' + process.env.NODE_ENV) // 开发模式下不采用组件懒加载，避免太多页面组件懒加载造成webpack热更新太慢
import Layout from '@/views/layout/Layout'
export default [
  {
    path: '/admin',
    component: Layout,
    redirect: '/admin/model',
    name: 'admin',
    hidden: true,
    children: [
    {
      path: 'model',    // 当前系统的左侧菜单路由皆配置在admin的子路由children下面(Tip：路由的配置是分模块的，当前配置的路由从属于admin这个模块)
      component: _import('layout/model/index'),
      redirect: '/admin/model/index',
      children: [
      {
        path: 'index',
        name: 'Index',
        component: _import('dashboard/index'),
        meta: { title: '首页' }
      },
      {
        path: 'bannerMaintain',
        name: 'BannerMaintain',
        component: _import('systemMng/tenantMng/index'),
        meta: { title: 'banner维护' }
      },
      {
        path: 'financialPlan',
        name: 'FinancialPlan',
        component: _import('systemMng/userMng/index'),
        meta: { title: '金融方案列表' }
      },
      {
        path: 'appraisal',
        name: 'Appraisal',
        component: _import('systemMng/roleMng/index'),
        meta: { title: '快速估值记录' }
      },{
        path: 'mortgageRecords',
        name: 'MortgageRecords',
        component: _import('systemMng/roleMng/index'),
        meta: { title: '有车想抵记录' }
      },{
        path: 'intentionRecords',
        name: 'IntentionRecords',
        component: _import('systemMng/roleMng/index'),
        meta: { title: '卖车意向记录' }
      },{
        path: 'photoPlan',
        name: 'PhotoPlan',
        component: _import('systemMng/roleMng/index'),
        meta: { title: '优先审批拍照方案' }
      },
      {
        path: 'appraisalOrder',
        name: 'AppraisalOrder',
        component: _import('systemMng/roleMng/index'),
        meta: { title: '车况鉴定订单' }
      },
      {
        path: 'feedback',
        name: 'Feedback',
        component: _import('systemMng/roleMng/index'),
        meta: { title: '用户反馈' }
      },
      {
        path: 'account',
        name: 'Account',
        component: _import('systemMng/roleMng/index'),
        meta: { title: '用户账号' }
      }
      ]
    }],
    meta: {
      requireAuth: true
    }
  }
]
